package entity;

//实体类的字段名与数据库的字段名有映射关系
public class Student {
    //属性，实体的字段名
    int id;
    String  stuName;
    int  stuNum;
    String sex;
    String project;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuNum() {
        return stuNum;
    }

    public void setStuNum(int stuNum) {
        this.stuNum = stuNum;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }


    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stuName='" + stuName + '\'' +
                ", stuNum=" + stuNum +
                ", sex='" + sex + '\'' +
                ", project='" + project + '\'' +
                '}';
    }
}
